package com.crawler.crawler.domain;


import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.sql.Timestamp;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 链接地址对象 magnet_url
 * 
 * @author XUEH
 * @date 2020-04-26
 */
public class MagnetUrl
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

    /** 链接地址 */
    private String magnetUrl;

    /** 是否已保存 */
    private Integer isSave;

    /** 链接名称 */
    private String magnetName;

    private Timestamp createTime;
    public MagnetUrl() {
        super();
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setMagnetUrl(String magnetUrl) 
    {
        this.magnetUrl = magnetUrl;
    }

    public String getMagnetUrl() 
    {
        return magnetUrl;
    }
    public void setIsSave(Integer isSave) 
    {
        this.isSave = isSave;
    }

    public Integer getIsSave() 
    {
        return isSave;
    }
    public void setMagnetName(String magnetName) 
    {
        this.magnetName = magnetName;
    }

    public String getMagnetName() 
    {
        return magnetName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("magnetUrl", getMagnetUrl())
            .append("isSave", getIsSave())
            .append("magnetName", getMagnetName())
            .toString();
    }
}
